import 'package:flutter/material.dart';
import 'package:flutter_fresh_mall_app/page/cart/shoppingCart.dart';
import 'package:flutter_fresh_mall_app/page/category/category.dart';
import 'package:flutter_fresh_mall_app/page/home/home.dart';
import 'package:flutter_fresh_mall_app/page/index.dart';

//全局路由管理类
class Routers {
  static final String indexPage = "/index";
  static final String homePage = "/home";
  static final String cartPage = "/cart";
  static final String category = "/category";

  static final Map<String, WidgetBuilder> routes = {
    indexPage: (context) => IndexPage(),
    homePage: (context) => HomePage(),
    cartPage: (context) => ShoppingCartPage(),
    cartPage: (context) => CategoryPage(),
  };
}
